package com.shopping.huaju.commodity.dao;

import com.shopping.huaju.commodity.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品属性和商品属性组的关联表
 * 
 * @author tofu
 * @email tofu@qq.com
 * @date 2023-11-07 20:48:17
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {
	//自定义Dao层接口 实现 根据属性关联对象的属性id和属性组id 删除/批量删除 关联关系
    void deleteByEntities(@Param("entities") AttrAttrgroupRelationEntity[] attrAttrgroupRelationEntities);

    //自定义Dao层接口 实现 根据属性关联对象的属性id和属性组id 保存/批量保存 关联关系
    void saveByRelationEntities(@Param("entities") AttrAttrgroupRelationEntity[] attrAttrgroupRelationEntities);
}
